@import 'sulu-admin-bundle/containers/Application/colors.scss';

$dropzoneBorderColor: $white;
$dropzoneBackgroundColor: rgba($black, .75);
$dropAreaInfoColor: $white;

.dropzone-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: $dropzoneBackgroundColor;
    padding: 30px;
}

.close-icon {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 32px;
    cursor: pointer;
    color: $dropAreaInfoColor;
    padding: 24px;
}

.drop-area {
    display: block;
    height: 100%;
    border: 2px dashed $dropzoneBorderColor;
    padding: 20px;
    cursor: pointer;
    position: relative;

    /* prevent flickering caused by dragleave event when dragging files over text/icon in drop area */
    * {
        pointer-events: none;
    }
}

.upload-info-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.upload-info {
    color: $dropAreaInfoColor;
    text-align: center;
}

.upload-info-headline {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: bold;
}

.upload-info-subline {
    font-size: 16px;
}

.upload-icon {
    margin-bottom: 10px;
    font-size: 52px;
}

.media-items {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-right: -20px;
    display: flex;
    flex-wrap: wrap;

    & > li {
        margin: 0 20px 20px 0;
    }
}
